/**
 * Created by fky on 4/4/2018.
 */
export class UserModel {
  id: number;
  userName: string;
  picture?: string;
  isLogin: boolean;
  email?: string;
  mobile?: string;
  createDate?: string;

  constructor(jsonObj?: any) {
    this.picture = 'assets/images/nick.png'; // set default picture
    this.isLogin = false;
    if (jsonObj) {
      this.id = jsonObj.id;
      this.userName = jsonObj.userName;
      this.mobile = jsonObj.mobile;
      this.createDate = jsonObj.createDate;
      this.email = jsonObj.email;
    }

  }


}


